package com.hnust.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class SensorData implements Serializable {
  private static final long serialVersionUID = 1L;
  private String id;
  private String uid;
  private Integer sensorCode;
  private String sensorName;
  private String testState;
  private Integer state;
  private Long data;
  private String unit;
  private String positionId;
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updateTime;
  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createTime;
}
